<?php
session_start();
?>
<html>
	<head>
	<title>Hyrule Sports</title>
	<link rel="stylesheet" type="text/css" href="user/sitestyle.css" />
	<?php include 'user/functions.php';
		  include 'select.class.php';
          include 'SearchItems.php';
		  $opt->IncludeSearchFunc();
	?>
	</head>
	
	<body>
	<div id="wrapper">
		<div id="header">
			<?php
			login();
			//session_destroy();
			?>
		</div>
		<div id="searchbar">
			<?php $opt->DisplaySearch();?>
			</div>
		<div id="middle">
			<div id="navbar">
			</div>
			<div id="content">
				<?php 
					$results = new SearchItems($_GET['category'], $_GET['type'], $_GET['manual_search']);
					if(!$_GET['type'])
					{
						$results->ResultsByCategory();
					}
					else
					{
						$results->ResultsByType();
					}
				?>
			</div>
		</div>
		<div id="footer">
		</div>
	</div>
	</body>
</html>
